package com.lys.controller;

import com.lys.service.DataClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class CityControlller {
    @Autowired
    private DataClient dataClient;
    @RequestMapping("/cities")
    public String listCity(){
        String body = null;
        try {
            body = dataClient.listCity();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return body;
    }

}
